import request from "@/utils/request";

/**
 * 登录
 */
export const loginApi = (data) => {
  return request({
    url: "/report/login",
    method: "post",
    data,
  });
};

/**
 * 获取操作员列表
 */
export const listOperatorListApi = () => {
  return request({
    url: "/system/user/operator/list",
    method: "get",
  });
};

/**
 * 计量单位-全部列表
 */
export const lisBasicUnitApi = () => {
  return request({
    url: "/api/unit/v1/all",
    method: "get",
  });
};

/**
 * 报工平台-工序首检下方-滚动条
 */
export const lisUnFirstApi = () => {
  return request({
    url: "/api/report/task/v1/query/unFirst",
    method: "get",
  });
};

/**
 * 报工平台-工序汇报下方-滚动条
 */
export const lisUnFinishApi = () => {
  return request({
    url: "/api/report/task/v1/query/unFinish",
    method: "get",
  });
};
/**
 * 根据字典类型查询字典数据信息
 */
export const getDicts = (dictType) => {
  return request({
    url: "/system/dict/data/type/" + dictType,
    method: "get",
  });
};
